(()=>{"use strict";var t,e={65677:(t,e,n)=>{var r=y(n(66694)),o=y(n(79674)),a=y(n(71350));n(76528),n(47585);var i=y(n(90146)),l=y(n(82786)),u=n(54830),f=y(n(90840)),d=y(n(40710)),c=y(n(64524)),s=y(n(55046));function y(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}a.default.extend(i.default),"en"===function(t){var e,n,r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=v(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){l=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(document.cookie.split("; "));try{for(o.s();!(e=o.n()).done;){var a=(n=e.value.split("="),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,f=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){f=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw o}}return l}}(n,r)||v(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],l=a[1];if("Scr1wCTFdLanguage"===i)return decodeURIComponent(l)}}catch(t){o.e(t)}finally{o.f()}return null}()?a.default.locale("en"):a.default.locale("zh-cn"),r.default.init(window.init),window.CTFd=r.default,window.helpers=s.default,window.$=o.default,window.dayjs=a.default,window.nunjucks=l.default,window.Howl=u.Howl,(0,o.default)((function(){(0,c.default)(),(0,d.default)(),(0,f.default)(r.default.config.urlRoot)}))},92713:(t,e,n)=>{n(65677),n(56930);var r=u(n(79674)),o=u(n(66694)),a=n(96403),i=u(n(49981)),l=u(n(92897));function u(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n,r,o,a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=f(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){l=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(document.cookie.split("; "));try{for(a.s();!(n=a.n()).done;){var i=(r=n.value.split("="),o=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,f=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){f=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw o}}return l}}(r,o)||f(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],u=i[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(u)?t:e}}catch(t){a.e(t)}finally{a.f()}return e}var s=i.default.extend(l.default);function y(t){t.preventDefault();var e=(0,r.default)(this),n=e.serializeJSON();e.find("button[type=submit]").attr("disabled",!0),o.default.api.post_notification_list({},n).then((function(t){e.find(":input[name=title]").val(""),e.find(":input[name=content]").val(""),setTimeout((function(){e.find("button[type=submit]").attr("disabled",!1)}),1e3),t.success||(0,a.ezAlert)({title:c("Error","错误"),body:c("Could not send notification. Please try again.","无法发送通知。请再试一次。"),button:c("OK","好的")});var n=document.createElement("div");(0,r.default)("#notifications-list").prepend(n),new s({propsData:{id:t.data.id,title:t.data.title,content:t.data.content,html:t.data.html,date:t.data.date}}).$mount(n)}))}function v(t){t.preventDefault();var e=(0,r.default)(this),n=e.data("notif-id");confirm(c("Are you sure you want to delete this notification?","您确定要删除此通知吗？"))&&o.default.api.delete_notification({notificationId:n}).then((function(t){t.success&&e.parent().remove()}))}(0,r.default)((function(){(0,r.default)("#notifications_form").submit(y),(0,r.default)(".delete-notification").click(v)}))}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t](a,a.exports,r),a.loaded=!0,a.exports}r.m=e,t=[],r.O=(e,n,o,a)=>{if(!n){var i=1/0;for(d=0;d<t.length;d++){for(var[n,o,a]=t[d],l=!0,u=0;u<n.length;u++)(!1&a||i>=a)&&Object.keys(r.O).every((t=>r.O[t](n[u])))?n.splice(u--,1):(l=!1,a<i&&(i=a));if(l){t.splice(d--,1);var f=o();void 0!==f&&(e=f)}}return e}a=a||0;for(var d=t.length;d>0&&t[d-1][2]>a;d--)t[d]=t[d-1];t[d]=[n,o,a]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.j=769,(()=>{var t={769:0,671:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,a,[i,l,u]=n,f=0;if(i.some((e=>0!==t[e]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(u)var d=u(r)}for(e&&e(n);f<i.length;f++)a=i[f],r.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return r.O(d)},n=self.webpackChunkctfd=self.webpackChunkctfd||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var o=r.O(void 0,[160,736,694],(()=>r(92713)));o=r.O(o)})();